import http from '@/api/http'

const root = '/catalogs'

/**
 * 查询图片
 * @param {String} id 指定目录
 * @param {Object} query 查询参数
 */
export function list (id, query) {
  return http({
    url: root + '/' + id,
    method: 'post',
    data: query
  })
}
